package com.hrm.pojo;

import java.io.Serializable;
import java.util.Date;

public class Notice  implements Serializable {
    private Integer id;

    private String title;

    private Date createDate;

    private Integer userId;

    private String content;

    private String username;//新增用户名属性

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null: username.trim();//需要判断为不为空
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", createDate=" + createDate +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}